<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
    'as'            => config('admin.route.prefix') . '.',
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('home');
    $router->any('add-rule', AddRule::class);  //添加会员
    $router->resource('risk-rules', RiskRuleController::class);
    $router->resource('risk-orders', RiskOrderController::class);
    $router->resource('risk-addresses', RiskAddressController::class);

    $router->resource('yuyues', YuyueController::class); //预约列表

    $router->resource('risk-rule-alis', RiskRuleAliController::class); //智租规则


//php artisan admin:make PostMemberController --model=App\PostMember  --title=会员导入
});
